Lambda
- Virtual functions
- No needs to manage servers
- Run on-demand
- Automatic scaling
- Ram uses can be up to 3MB
- Increasing ram, improves the performance of
CPUandNetwork - Almost all programming language are supported by lambda
- Using
Custom Runtime APIit can support other languages - Docker is not supported. Docker can run in the followings
- ECS
- Fargate
Cloudwatch Event EventBridgecan be used to runCRON jobfunction that is in theLambdaCloudwatchcan be used to debug the code
Lambda Limits
- Execution
- Memory allocation: 128MB to 3008MB (64MB increments)
- Max execution time: 15 minutes
- Env variable size: 4 KB
- Disk Capacity (/temp): 512MB
- Concurrent execution: 1000 (can be increased)
- Deployment
- Compressed deployment size: 50MB
- Uncompressed deployment size: 250MB
Lambda@Edge
- Required when
- Deployed a
CDNusingCloudfront - Want to run
Lambda Functionalongside - Make 4 types Requests
- Between
UserandCloudfront- Viewer Request
- Viewer Response
- Between
CloudfrontandOrigin- Origin Request
- Origin Response
- Use-cases
- Web additional security
- Dynamic app at the
Edge SEO- Intelligent routing across
OriginandData Center - Bot Mitigation at
EDGE - A/B Testing
- User
AuthenticationandAuthorization - User
Prioritization - User tracking and analytics